<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
table {border-collapse:collapse;border-top:1px solid #ccc;border-left:1px solid #ccc;font-size:16px;}
th, td {width:80px;border-right:1px solid #ccc;border-bottom:1px solid #ccc;text-align:center;}
th {width:120px;font-size:20px;}
td {height:25px;}
table .bdr-btm-none{width:15px;border-bottom:none;}
table input[type="text"] {width:90px;border:0 none;text-align:center;}
.font18 {font-size:18px;}
.color-green {color:#008000;}
.color-red {color:#f00;}
.color-cyan {color:#0cf;}
.bg-yellow {background-color:#ff0;}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="19" style="height:70px;font-size:25px;">订单号：<?php echo $orderNum['order_sn'].'-'.$order_item_id;?>|货号：<?php echo $order['product_sn'];?>|商品名称：<font color="red"><?php echo $orderfigure['product_name']?></font></td>
  </tr>
  <tr>
    <th>客户名</th>
    <td><?php echo $measure['measure_name']?></td>
    <td>风格</td>
    <td><input type="text"/></td>
    <td class="bdr-btm-none"></td>
    <td>面料成份</td>
    <td><input type="text"/></td>
    <td>里料成份</td>
    <td><input type="text"/></td>
  </tr>
  <tr>
    <th rowspan="4">面料信息</th>
    <td>面料编号</td>
    <td><input type="text" value="<?php echo $suppliers['suppliers_name']?>"></td>
    <td><input type="text" value="<?php echo $suppliers['lining_name']?>"></td>
    <td class="bdr-btm-none"></td>
    <td>幅宽</td>
    <td><input type="text" value="<?php echo $suppliers['breadth']?>"></td>
    <td>耗料</td>
    <td colspan="2"><input type="text" value="<?php echo $suppliers['material']?>"></td>
  </tr>
  <tr>
    <td>撞色面料</td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td colspan="2"></td>
  </tr>
<?php 
	$lining_db = D('lining');
	$lining_info = $lining_db->where(array('suppliers_name'=>$orderfigure['attr_array'][$key]['cn_attr_value_name']))->find();
?>
  <tr>
    <td>里料编号</td>
    <td><input type="text" value="<?php echo isset($orderfigure['attr_array']['136']['cn_attr_value_name'])?$orderfigure['attr_array']['136']['cn_attr_value_name']:'无'?>"></td>
    <td><input type="text" value="<?php echo isset($lining['lining_name'])?$lining['lining_name']:'无'?>"></td>
    <td class="bdr-btm-none"></td>
    <td>幅宽</td>
    <td><input type="text" value="<?php echo isset($lining['lining_name'])?$lining['breadth']:'无'?>"></td>
    <td>耗料</td>
    <td colspan="2"><input type="text" value="<?php echo isset($lining['lining_name'])?$lining['material']:'无'?>"></td>
  </tr>
  <tr>
    <td>撞色里料</td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td colspan="2"></td>
  </tr>
  		<?php
			$data2 = unserialize($measure['measure_data']);
		?>
  <tr>
    <th rowspan="19">服装</th>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td><input type="text"></td>
    <td class="bdr-btm-none"></td>
    <td colspan="5" class="font18">西裤</td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td class="font18">版型</td>
    <td class="font18 color-green"><input type="text" value=""></td>
    <td class="font18">尺码</td>
    <td colspan="2" class="font18 color-green"><input type="text" value=""></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>成衣尺寸</td>
    <td class="color-green"><input type="text"/></td>
    <td>MTM尺寸</td>
  </tr>
  <tr>
    <td>客户基本信息</td>
    <td>身高</td>
    <td><input type="text" value="<?php echo $data2['height']['cm']?>"></td>
    <td class="bdr-btm-none"></td>
    <td class="bg-yellow">裤长</td>
    <td class="color-cyan"><input type="text" value="<?php echo $data2['pants']['cm']?>"></td>

  </tr>
  <tr>
    <td></td>
    <td>体重</td>
    <td><input type="text" value="<?php echo $data2['weight']['kg']?>"></td>
    <td class="bdr-btm-none"></td>
    <td>腰围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['shirt']['cm']?>"></input></td>
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>    
  </tr>
  <tr>
    <td></td>
    <td>年龄</td>
    <td><input type="text" value="<?php echo $data2['age']?>"></td>
    <td class="bdr-btm-none"></td>
    <td>臀围</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['chest']['cm']?>"></td>
    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>

  </tr>
  <tr>
    <td>客户体型信息</td>
    <td>肩</td>
    <td><input type="text" value="<?php  if($data2['shoulder']['type']==1){echo "高肩";}elseif($data2['shoulder']['type']==2){echo "介于高和正常";}elseif($data2['shoulder']['type']==3){echo "正常肩膀";}elseif($data2['shoulder']['type']==4){echo "介于正常和溜肩";}elseif($data2['shoulder']['type']==5){echo "溜肩";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>横档</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['stomach']['cm']?>"></td>    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td></td>
    <td>胸</td>
    <td><input type="text" value="<?php  if($data2['chest']['type']==1){echo "胸肌发达";}elseif($data2['chest']['type']==2){echo "介于发达和正常";}elseif($data2['chest']['type']==3){echo "平坦的胸部";}elseif($data2['chest']['type']==4){echo "介于正常和肥胖";}elseif($data2['chest']['type']==5){echo "肥胖";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>中档</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['pants_hips']['cm']?>"></td>
    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>

  </tr>
  <tr>
    <td></td>
    <td>肚</td>
    <td><input type="text" value="<?php  if($data2['stomach']['type']==1){echo "平腹";}elseif($data2['stomach']['type']==2){echo "介于平腹和微凸";}elseif($data2['stomach']['type']==3){echo "凸腹";}elseif($data2['stomach']['type']==4){echo "介于微凸和凸腹";}elseif($data2['stomach']['type']==5){echo "肥胖";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>脚口</td>
    <td class="color-red"><input type="text" value="<?php echo $data2['jacket_back']['cm']?>"></td>
    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td></td>
    <td>背</td>
    <td><input type="text" value="<?php if($data2['posture']['type']==1){echo "笔挺";}elseif($data2['posture']['type']==2){echo "微挺";}elseif($data2['posture']['type']==3){echo "正常(不驼背)";}elseif($data2['posture']['type']==4){echo "微驼";}elseif($data2['posture']['type']==5){echo "驼背";}else{echo '正常';}?>"></td>
    <td class="bdr-btm-none"></td>
    <td>直档</td>
    <td class="color-red"></td>
    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>

  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td class="color-red"></td>    
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td class="color-red"></td>
    <!--<td>背宽</td>
    <td class="color-red"><input type="text"></td>-->
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>

  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td class="color-red"><input type="text"></td>
    <td class="bg-yellow"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td>MTM变更</td>
    <td class="color-green"><input type="text"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td>绣字第一行</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][143])?$orderfigure['attr_array'][143]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td class="color-green"><input type="text"></td>
    <td class="color-cyan"></td>
  </tr>
  <tr>
    <td>绣字第二行</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][144])?$orderfigure['attr_array'][144]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>绣字字体</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][145])?$orderfigure['attr_array'][145]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>绣字颜色</td>
    <td colspan="2"><input type="text" value="<?php echo isset($orderfigure['attr_array'][146])?$orderfigure['attr_array'][146]['cn_attr_value_name']:'没有';?>"></td>
    <td class="bdr-btm-none"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3"></td>
    <td class="bdr-btm-none"></td>
    <td colspan="4"></td>
  </tr>
  <tr>
    <td colspan="19"></td>
  </tr>
</table>
<table width="100%" border="0">
    <tr>
        <td align="center">
        	<input type="button" class="button" onclick="javascript:window.print();" value="打印">
       </td>
    </tr>
</table>
<script>
$(function() {
	$('table').find('td > span').click(function() {
		$(this).hide().siblings('input[type=text]').show();
	});
	$('table').find('input[type=text]').blur(function() {
		$(this).hide().siblings('span').text($(this).val());
	});
});
</script>
</body>
</html>